3.117 \(\int \frac{1+x^2}{(16+x^2)^3} \, dx\)

Optimal. Leaf size=35 \[ \frac{19 x}{2048 \left (x^2+16\right )}-\frac{15 x}{64 \left (x^2+16\right )^2}+\frac{19 \tan ^{-1}\left (\frac{x}{4}\right )}{8192} \]

[Out]

(-15*x)/(64*(16 + x^2)^2) + (19*x)/(2048*(16 + x^2)) + (19*ArcTan[x/4])/8192

________________________________________________________________________________________

Rubi [A]  time = 0.0068099, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {385, 199, 203} \[ \frac{19 x}{2048 \left (x^2+16\right )}-\frac{15 x}{64 \left (x^2+16\right )^2}+\frac{19 \tan ^{-1}\left (\frac{x}{4}\right )}{8192} \]

Antiderivative was successfully verified.

[In]

Int[(1 + x^2)/(16 + x^2)^3,x]

[Out]

(-15*x)/(64*(16 + x^2)^2) + (19*x)/(2048*(16 + x^2)) + (19*ArcTan[x/4])/8192

Rule 385

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> -Simp[((b*c - a*d)*x*(a + b*x^n)^(p +
 1))/(a*b*n*(p + 1)), x] - Dist[(a*d - b*c*(n*(p + 1) + 1))/(a*b*n*(p + 1)), Int[(a + b*x^n)^(p + 1), x], x] /
; FreeQ[{a, b, c, d, n, p}, x] && NeQ[b*c - a*d, 0] && (LtQ[p, -1] || ILtQ[1/n + p, 0])

Rule 199

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> -Simp[(x*(a + b*x^n)^(p + 1))/(a*n*(p + 1)), x] + Dist[(n*(p +
 1) + 1)/(a*n*(p + 1)), Int[(a + b*x^n)^(p + 1), x], x] /; FreeQ[{a, b}, x] && IGtQ[n, 0] && LtQ[p, -1] && (In
tegerQ[2*p] || (n == 2 && IntegerQ[4*p]) || (n == 2 && IntegerQ[3*p]) || Denominator[p + 1/n] < Denominator[p]
)

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{1+x^2}{\left (16+x^2\right )^3} \, dx &=-\frac{15 x}{64 \left (16+x^2\right )^2}+\frac{19}{64} \int \frac{1}{\left (16+x^2\right )^2} \, dx\\ &=-\frac{15 x}{64 \left (16+x^2\right )^2}+\frac{19 x}{2048 \left (16+x^2\right )}+\frac{19 \int \frac{1}{16+x^2} \, dx}{2048}\\ &=-\frac{15 x}{64 \left (16+x^2\right )^2}+\frac{19 x}{2048 \left (16+x^2\right )}+\frac{19 \tan ^{-1}\left (\frac{x}{4}\right )}{8192}\\ \end{align*}

Mathematica [A]  time = 0.0091254, size = 35, normalized size = 1. \[ \frac{19 x}{2048 \left (x^2+16\right )}-\frac{15 x}{64 \left (x^2+16\right )^2}+\frac{19 \tan ^{-1}\left (\frac{x}{4}\right )}{8192} \]

Antiderivative was successfully verified.

[In]

Integrate[(1 + x^2)/(16 + x^2)^3,x]

[Out]

(-15*x)/(64*(16 + x^2)^2) + (19*x)/(2048*(16 + x^2)) + (19*ArcTan[x/4])/8192

________________________________________________________________________________________

Maple [A]  time = 0.007, size = 25, normalized size = 0.7 \begin{align*}{\frac{1}{ \left ({x}^{2}+16 \right ) ^{2}} \left ({\frac{19\,{x}^{3}}{2048}}-{\frac{11\,x}{128}} \right ) }+{\frac{19}{8192}\arctan \left ({\frac{x}{4}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^2+1)/(x^2+16)^3,x)

[Out]

(19/2048*x^3-11/128*x)/(x^2+16)^2+19/8192*arctan(1/4*x)

________________________________________________________________________________________

Maxima [A]  time = 1.50527, size = 41, normalized size = 1.17 \begin{align*} \frac{19 \, x^{3} - 176 \, x}{2048 \,{\left (x^{4} + 32 \, x^{2} + 256\right )}} + \frac{19}{8192} \, \arctan \left (\frac{1}{4} \, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^2+1)/(x^2+16)^3,x, algorithm="maxima")

[Out]

1/2048*(19*x^3 - 176*x)/(x^4 + 32*x^2 + 256) + 19/8192*arctan(1/4*x)

________________________________________________________________________________________

Fricas [A]  time = 1.16367, size = 116, normalized size = 3.31 \begin{align*} \frac{76 \, x^{3} + 19 \,{\left (x^{4} + 32 \, x^{2} + 256\right )} \arctan \left (\frac{1}{4} \, x\right ) - 704 \, x}{8192 \,{\left (x^{4} + 32 \, x^{2} + 256\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^2+1)/(x^2+16)^3,x, algorithm="fricas")

[Out]

1/8192*(76*x^3 + 19*(x^4 + 32*x^2 + 256)*arctan(1/4*x) - 704*x)/(x^4 + 32*x^2 + 256)

________________________________________________________________________________________

Sympy [A]  time = 0.124476, size = 27, normalized size = 0.77 \begin{align*} \frac{19 x^{3} - 176 x}{2048 x^{4} + 65536 x^{2} + 524288} + \frac{19 \operatorname{atan}{\left (\frac{x}{4} \right )}}{8192} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x**2+1)/(x**2+16)**3,x)

[Out]

(19*x**3 - 176*x)/(2048*x**4 + 65536*x**2 + 524288) + 19*atan(x/4)/8192

________________________________________________________________________________________

Giac [A]  time = 1.15011, size = 34, normalized size = 0.97 \begin{align*} \frac{19 \, x^{3} - 176 \, x}{2048 \,{\left (x^{2} + 16\right )}^{2}} + \frac{19}{8192} \, \arctan \left (\frac{1}{4} \, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^2+1)/(x^2+16)^3,x, algorithm="giac")

[Out]

1/2048*(19*x^3 - 176*x)/(x^2 + 16)^2 + 19/8192*arctan(1/4*x)